services:
  app:
    build: ./
    volumes:
      - ./:/app
    tty: true

  db:
    image: mysql
    volumes:
      - ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
    ports:
     - "8788:3306"
    environment:
      MYSQL_DATABASE: test_task
      MYSQL_ROOT_PASSWORD: root_secret
      MYSQL_USER: app_user
      MYSQL_PASSWORD: app_user_secret
